import axios from '@/api/axios'
import { createApp } from 'vue'
import App from '@/App.vue'
import router from '@/router'
import store from '@/store'
import SvgIcon from'@/icons' // icon
import i18n from '@/i18n' // i18n部分的配置
import '@/permission' // 路由拦截
import permission from '@/directive/permission/index'; // 显示插件
import '@/assets/styles/index.scss'; //引入css
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
// import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

// import Cookie from 'js-cookie'
// Cookie.get('tenantId');
// Cookie.set('tenantId', tenantId), { domain: '.yourdomain.com' };
//用来设置Cookie



//lodash 记得用工具库
export const app = createApp(App);
app.use(router).use(store).use(SvgIcon).use(i18n).directive('permission', permission)
// .use(ElementPlus,{
//     locale: zhCn,
// })

app.mount('#app')
app.config.globalProperties.$axios=axios;
app.config.globalProperties.$store=store;
